package com.example.jetpacktest.activity

import android.os.Bundle
import android.os.PersistableBundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.ViewModelProvider
import com.example.jetpacktest.R
import com.example.jetpacktest.databinding.ActivityTest001Binding
import com.example.jetpacktest.viewmodel.Test001ViewModel
import com.example.jetpacktest.viewmodel.Test1ViewModel

class Test001Activity : AppCompatActivity() {

    private lateinit var binding: ActivityTest001Binding

    private lateinit var viewModel: Test001ViewModel

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = DataBindingUtil.setContentView(this, R.layout.activity_test001)
        viewModel = ViewModelProvider(this).get(Test001ViewModel::class.java)
        binding.v001 = "hello databing";
        binding.viewModel = viewModel

    }


}